import Vue from 'vue'
import Router from 'vue-router'

import Login from 'views/login.vue'
import Home from 'components/Home.vue'
import dashboard from 'components/dashboard.vue'
/**系统管理 */
import menu from 'views/systemManage/menu.vue'
import roles from 'views/systemManage/roles.vue'
import department from 'views/systemManage/department.vue'
import user from 'views/systemManage/user.vue'
import code from 'views/systemManage/code.vue'
import log from 'views/systemManage/log.vue'



/**营运管理 */ 
import newPulpFilling from 'views/operationManage/newPulpFiling.vue'
import register from 'views/operationManage/register.vue'
// 问诊记录
import inquiryRecord from 'views/operationManage/inquiryRecord.vue'
import inquiryRecordDetail from 'views/operationManage/inquiryRecordDetail.vue'
import allPlan from 'views/operationManage/allPlan.vue'

import zqtyspz from 'views/operationManage/zqtyspz.vue'
import bodyCheck1 from 'views/operationManage/bodyCheck1.vue'
import sample from 'views/operationManage/sample.vue'
import distribution from 'views/operationManage/distribution.vue'
import doctorAdvice from 'views/operationManage/doctorAdvice.vue'

/**营运管理 _by:zf  beging*/
import untreated from 'views/operationManage/untreated.vue';
import pulpCollect from 'views/operationManage/pulpCollect.vue';
import sampleStorage from 'views/operationManage/sampleStorage.vue';
import cost1 from 'views/operationManage/cost1.vue';
import cost2 from 'views/operationManage/cost2.vue';
import heatSeal from 'views/operationManage/heatSeal.vue';
/**营运管理 _by:zf end */

import dating from 'views/operationManage/video/dating.vue';
import caijiangshi from 'views/operationManage/video/caijiangshi.vue';
import shiyanshi from 'views/operationManage/video/shiyanshi.vue';

/**法规文件*/
import fieldGuidance from 'views/fieldGuidance/index.vue'
import fieldGuidanceSetting from 'views/fieldGuidance/setting.vue'

/**质量体系 */
/**质量体系-质量手册 */
import zlsc from 'views/qualitySystem/zlsc/index.vue'
/**质量体系-质量手册 */
import zlscSetting from 'views/qualitySystem/zlsc/setting.vue'
/**质量体系-程序文件 */
import cxwj from 'views/qualitySystem/cxwj/index.vue'
import cxwjSetting from 'views/qualitySystem/cxwj/setting.vue'
/**质量体系-三级文件 */
import sjFile from 'views/qualitySystem/sjFile/index.vue'
/**质量体系-三级文件设置 */
import sjFileSetting from 'views/qualitySystem/sjFile/setting.vue'
/**缔造价值 */
/**缔造价值-任务 */
import creatingValueTask from 'views/creatingValue/task.vue'
/**缔造价值-所有任务 */
import creatingValueAllTask from 'views/creatingValue/allTask.vue'
/**缔造价值-所有任务 */
import creatingValueCharts from 'views/creatingValue/charts.vue'
/**血疗知识库 */
import bloodKnowledge from 'views/bloodKnowledge/index.vue'
/**系统使用说明书 */
import systemOperationManual from 'views/systemOperationManual/index.vue'
/**资源保障-物料清单 */
import bom from 'views/resourcesProtection/bom.vue'
/**资源保障-供应商 */
import supplier from 'views/resourcesProtection/supplier.vue'
/**资源保障-采购任务 */
import cgTask from 'views/resourcesProtection/cgTask.vue'
/**资源保障-原料库任务 */
import rawMaterialStorageTask from 'views/resourcesProtection/rawMaterialStorageTask.vue'

/**人力资源岗位管理*/
import humanResources from 'views/humanResources/index.vue'
/**人力资源岗位管理设置*/
import humanResourcesSetting from 'views/humanResources/setting.vue'


Vue.use(Router)
export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
        component: Home,
        meta: {title: '自述文件'},
        children: [
          /**首页 */
           {meta: {title: '系统首页'}, path: '/', component: dashboard},
          /**系统管理 */
          {meta: {title: '菜单管理'},path: '/adscm/system/menu',component: menu},
          {meta: {title: '角色管理'},path: '/adscm/system/role',component: roles},
          {meta: {title: '部门管理'},path: '/adscm/system/dept',component: department},
          {meta: {title: '用户管理'},path: '/adscm/system/user',component: user},
          {meta: {title: '日志管理'},path: '/adscm/system/log',component: log},
          {meta: {title: '码表管理'},path: '/adscm/system/code',component: code},
          
          
          
          /**营运管理 */
           {meta: {title: '新客户建档'}, path: '/adscm/application/providerInfo', component: newPulpFilling},
           {meta: {title: '登记分诊'}, path: '/adscm/application/providerReg', component: register},
           {meta: {title: '问诊记录'}, path: '/adscm/application/inquiryRecord', component: inquiryRecord},
           
           {meta: {title: '治疗计划'}, path: '/adscm/application/allPlan', component: allPlan},
           {meta: {title: '临时医嘱'}, path: '/adscm/application/da/doctorAdvice', component: doctorAdvice},

           {meta: {title: '体检记录'}, path: '/adscm/application/bodyCheck', component: bodyCheck1},
           {meta: {title: '检验记录'}, path: '/jz/application/sample', component: sample},
           {meta: {title: '分配记录'}, path: '/adscm/application/providerAllot', component: distribution},
           {meta: {title: '知情同意书配置'}, path: '/adscm/application/zqtys', component: zqtyspz},


         /**营运管理 老版页面 _by:zf beging */
           {meta: {title: '医废处理'}, path: '/adscm/application/providerCollection', component: untreated},
           {meta: {title: '治疗过程记录'}, path: '/adscm/application/providerCollection/59', component: pulpCollect},
           {meta: {title: '样品入库'}, path: '/adscm/application/sampleStorage', component: sampleStorage},
           {meta: {title: '未处理费用记录'}, path: '/adscm/application/providerCost/63', component: cost1},
           {meta: {title: '缴费记录'}, path: "/adscm/application/providerCost/65", component: cost2},
           {meta: {title: '热和记录'}, path: '/adscm/application/heatSeal', component: heatSeal},
         /**营运管理 老版页面 _by:zf end */
         /**视频查看 */
           {meta: {title: '大厅视频'}, path: '/jz/video/hall', component: dating},
           {meta: {title: '采浆室视频'}, path: '/jz/video/collRoom', component: caijiangshi},
           {meta: {title: '实验室视频'}, path: '/jz/video/assayRoom', component: shiyanshi},
           /**统计分析 */ 
          /**法规文件*/ 
          {meta: {title: '法规文件'}, path: '/adscm/fieldGuidance/index', component: fieldGuidance},
           /**法规文件菜单设置*/
          {meta: {title: '法规文件菜单设置'}, path: '/adscm/fieldGuidanceSetting', component: fieldGuidanceSetting},
          
          /**质量体系*/ 
          /**质量体系-质量手册*/
          {meta: {title: '质量手册'}, path: '/adscm/qualitySystem/zlsc', component: zlsc},
          {meta: {title: '质量手册'}, path: '/adscm/qualitySystem/zlscSetting', component: zlscSetting},
          /**质量体系-程序文件*/
          {meta: {title: '程序文件'}, path: '/adscm/qualitySystem/cxwj', component: cxwj},
          {meta: {title: '程序文件'}, path: '/adscm/qualitySystem/cxwjSetting', component: cxwjSetting},
           /**质量体系-三级文件*/
          {meta: {title: '三级文件'}, path: '/adscm/qualitySystem/sjFile', component: sjFile},
          /**质量体系-三级文件设置*/
          {meta: {title: '三级文件设置'}, path: '/adscm/qualitySystem/sjFileSetting', component: sjFileSetting},
          
          /**缔造价值 */
          /**缔造价值-任务 */
          {meta: {title: '任务'}, path: '/adscm/creatingValue/task', component: creatingValueTask},
          /**缔造价值-所有任务 */
          {meta: {title: '所有任务'}, path: '/adscm/creatingValue/allTask', component: creatingValueAllTask},
          /**缔造价值-统计图 */
          {meta: {title: '统计图'}, path: '/adscm/creatingValue/charts', component: creatingValueCharts},
           /**血疗知识库 */
          { meta: { title: '血疗知识库' }, path: '/adscm/bloodKnowledge/index', component: bloodKnowledge},
          /**血疗知识库 */
          { meta: { title: '系统使用说明书' }, path: '/adscm/systemOperationManual', component: systemOperationManual},
          /**资源保障-物料清单 */
          { meta: { title: '物料清单' }, path: '/adscm/resourcesProtection/bom', component: bom},
          /**资源保障-物料清单 */
          { meta: { title: '供应商' }, path: '/adscm/resourcesProtection/supplier', component: supplier},
          /**资源保障-采购任务 */
          { meta: { title: '采购任务' }, path: '/adscm/resourcesProtection/cgTask', component: cgTask },
          /**资源保障-原料库任务 */
          { meta: { title: '原料库任务' }, path: '/adscm/resourcesProtection/rawMaterialStorageTask', component: rawMaterialStorageTask },
          /**人力资源岗位管理*/
          { meta: { title: '人力资源岗位管理' }, path: '/adscm/humanResources/index', component: humanResources },
          /**人力资源岗位管理设置*/
          { meta: { title: '人力资源岗位管理设置' }, path: '/adscm/humanResources/setting', component: humanResourcesSetting }
        ]
    },
    {meta: {title: '问诊详情'}, path: '/inquiryRecordDetail', component: inquiryRecordDetail},
    {
      path: '/login',
      component: Login 
    }
  ]
})